package cn.darkhorse.workorder.vo;

import cn.darkhorse.workorder.domain.*;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class QmsWorkorderVO {


    /** 主键 */
    @ApiModelProperty(" 主键")
    private Long id;

    /** 流转单号 */
    @ApiModelProperty(" 流转单号")
    @Excel(name = "流转单编号")
    private String orderNumber;
    /** 流转单号 */
    @ApiModelProperty(" 批号")
    @Excel(name = "批号")
    private String batchNumber;
    /** 单据状态 */
    @ApiModelProperty(" 单据状态")
//    @Excel(name = "单据状态")
    private Integer status;
    @ApiModelProperty(" 单据状态翻译")
    @TableField(exist = false)
    @Excel(name = "单据状态")
    private String statusName;

    /** 加工企业 */
    @ApiModelProperty(" 加工企业")
    @Excel(name = "加工企业")
    private String processors;

    @ApiModelProperty("加工企业代码")
    @Excel(name = "加工企业代码")
    private String processorsCode;

    //    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long processorsId;
    /** 检验类型 */
    @ApiModelProperty(" 检验类型")
//    @Excel(name = "检验类型")
    private Integer orderType;
    @TableField(exist = false)
    @Excel(name = "检验类型")
    private String orderTypeName;
    /** 创建时间 */
    @ApiModelProperty(" 创建时间")
    private Date createTime;

    /** 创建人 */
    @ApiModelProperty(" 创建人")
    private String createBy;

    /** 创建人id */
    @ApiModelProperty(" 创建人id")
    private Long createById;

    /** 创建人id */
    @ApiModelProperty("上传时间")
//    @Excel(name = "上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    @ApiModelProperty("条码")
    private String barCode;

    private QmsWorkorderLog statusOverTimes;


    private QmsWorkorderAudit workorderAudit;


    private QmsWorkorderHvi WorkorderHvi;


    private QmsWorkorderSampleBalance workorderSampleBalance;


    private QmsWorkorderSampleDelivery workorderSampleDelivery;


    private QmsWorkorderSense workorderSense;
    /** 开始时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startBeginTime;

    /** 结束时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endBeginTime;

    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date startEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date endEndTime;

    String startTime;
    String endTime;
    JSONObject timeLine;
}
